package com.vortex.cloud.sample.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.vortex.cloud.sample.domain.TaskUser;
import com.vortex.cloud.vfs.lite.base.dto.RestResultDTO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author 王林
 * @version 1.0
 * @date 2021-10-14 周四
 * @time 17:00
 * @description
 */
public interface CommonService extends IService<TaskUser> {

    /**
     * @Description: 导出文件
     * @Param: [response]
     * @return: com.vortex.cloud.vfs.lite.base.dto.RestResultDTO
     * @Author: 王林
     * @Date: 2021/10/14
     */
    RestResultDTO<String> exportExcel(HttpServletResponse response) throws IOException;

    /**
     * @Description: 文件导入
     * @Param: [file]
     * @return: com.vortex.cloud.vfs.lite.base.dto.RestResultDTO<java.lang.String>
     * @Author: 王林
     * @Date: 2021/10/15
     */
    RestResultDTO<String> importExcel(MultipartFile file) throws IOException;

}
